package ee.propaganda.gparrot.client.view;

import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

public class LoginPanel extends Composite{
	
	public LoginPanel(String loginUrl){
		VerticalPanel loginPanel = new VerticalPanel();
		this.initWidget(loginPanel);
		Anchor loginLink = new Anchor("Sign In");
		loginLink.setHref(loginUrl);
		loginPanel.add(new Label("Please sign-in with your Google Account to access the GParrot service. If you have never used GParrot before a new user account will be automatically created for you when you log in."));
		loginPanel.add(loginLink);
		
	}
}
